import Layout from '@/layout'

const managerFinanceRouter = {
  path: '/manager/finance',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'ManagerFinance',
  meta: {
    title: '财务管理',
    roles: ['manager', 'admin']
  },
  children: [
    {
      path: 'account',
      component: () => import('@/views/manager/finance/account-list'),
      name: 'ManagerFinanceAccount',
      meta: { title: '财务记录', noCache: false }
    },
    {
      path: 'account/:id(\\d+)/edit',
      component: () => import('@/views/manager/finance/account-edit'),
      name: 'ManagerFinanceAccountEdit',
      meta: { title: '财务记录编辑', noCache: false },
      hidden: true
    },
    {
      path: '',
      // component: () => import('@/views/manager/finance/'),
      name: '',
      meta: { title: '客户充值(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/finance/'),
      name: '',
      meta: { title: '充值记录(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/finance/'),
      name: '',
      meta: { title: '财务结算(TBD)', noCache: false }
    }
  ]
}

export default managerFinanceRouter
